Added a custom error handler function to ensure that exceptions are thrown
even if we don't have an oci_error() call immediately after the statement.
Update script now exits with an error immediately when an exception occurs on any table.