Deactivate verbose logging of database queries

fixes #5014