pushToDatabase

fun pushToDatabase(document: Document)

Send the created document to the Mongo collection.