progress on working on service and dao functions before view