Working get and delete for MongoDB