Added before_save() and after_save(). Fixed _update()