Saving shake undos to db