basic initializers to connect to mongodb and redis