Added code for households POST and did some refactoring