adding dao functions
adding dao template functions