connected to MongoDB server and gotkeys()