Refactored some methods classes PartyDAO and PositionDAO