Log snippet with MySQL queries