pushToDatabase

fun pushToDatabase(document: <Error class: unknown class>)

Send the created document to the Mongo collection.