update database with event registration