database updated for events