Database: log via the logger, not via stderr

Signed-off-by: David Scott <dave.scott@citrix.com>