Refactor TaskDAO and ServiceOrderDAO + CreateCircuit