Fixed mongo database. Data now sent to a mongo collection.