Whitespace fixes
Bugnote api: db_prepare_int() and db_query()

- Removed occurences of unused or uses of undefined c_XXX variables
- Removed one call to db_prepare_int()
- Replaced inline query parameters by bound ones, and calls to
  db_query() by db_query_bound()

Fixes #16482