minor changes to database_tools (monitoring queries)