Changed database to MongoDb, including migrations