Fixes to DBObject