updated service and dao for task creation