updated to match new ORM relationships in projectdb API --KW