Minor cleanup, add missing backticks in SQL.