Fixing string to DBObject conversion