When check exists it runs the SQL statement anyway and since it fails it panics. Should print error and exit