Add mongoDB connection, configure sessions