removed the sql_obj record in sql_report_t
sql_report -> sql_report_t
split the offset_check function into sub-functions