don't return SQL to the user when there is an IntegrityError, DataError, or ProgrammingError

fixes #280
done.