Quote ids used in update SQL queries