loading events from db