Changed db connection from creating db and server to mongo client