dbquery: more reinstall-friendly dbquery

* Makes dbquery more reinstall-friendly by means of creating
  dbquery_config file that is not erased while `make install`
  process runs (which may be possibly lengthy).  It only changes
  by `inveniocfg --update` family of statements.

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>