Function for getting houseId