persist to mysql