Added sql_check class