remove events and fix some migrations