Add new db function for getting a event by id