Biochemical systems for sulfur and carbon sequestration