Biogas production and waste management