Log a warning if a query might change the database
Add host and port to diagnostics output
Fix metric name typo