Add log sql queries