log sql on qa