added functionality for database logging of slow queries