event save to database bugfix