Remove useless events from db