Put in some very half-arsed error handling for create/update queries.