Prepare the app for mongodb