add schema to "read_sql" function and catch exception of calling has_table with sql_string