Implemented helper class to convert from/to DBObject using reflection.