contact dao function refactored