check SQL and Schema