Flask extension to perform raw queries and updates to MongoDB collections