rollback db and mod code to stop error