fixed failure state of db with tx.rollback, and also failrure state of
$.ajax to close an explicitly declared dfd as error: didnt seem to be
doming that. You shoul dbe able to make mistakes now without hanging
everything.