added db.setQuery for update