Functions witten async + database connection setup (MongoLab)