adding mongodb as a dependency on package file and modifying the db config file