Fix mysql_xxx() to sql_xxx()
Use SqlApi