Debugging sql.