Check empty schema and data sql