Update events to connect to DB