refactoring update house by table