add constarint to sqlite, fix sqlite connection to execute rollback