Functor homology and homology of commutative monoids