Add DB init to events