upgraded entity framework, added person ref functionality