debug lines for sql query