Fixed bug in nogoDB: added import for sqlalchemy IntegrityError