add logging queries to log file #7