cache backgroundwatcher: fix backticks, use prepared statement, log db error
cache update: fix backticks, log error