Very basic write to MongoDB database