finished adding event to database function