fixed version and improved conversion of DBObject<-->JsonObject