Generating mnhc database report as csv using new db strutures