implemented getObjectValues in mongo