Add error checking for SQL API calls