Replace Scriptcases's sc_exec_sql with sc_select for error handling