also: - refactor and significantly simplify database-wrapper code - rename manualSendToMongo to manualSendToDb