symboldb: Log errors using the right database connection