Slow queries and binary logs