Remove deprecated code, db value of LAST_LOG checked
Remove Event entity and replace everywhere with EventType enum
* update the current schema
* add migration sql