Update events model to interact properly with the db.