added service helper
refactored contract dao