code for dao
add coding of serivce
add test