Added MongoDB and functions for connecting to db