Added closing statements to database operations.
Solved a bug that caused rooms for a newly created house not to be
listed.