Create a conenction to mongodb on app start. Split database stuff into a model.