make bet simpler than before, it only records the events for persistence. and also do the caculation in erlang, save it in mysql, that's all, don't do batch operation in db.