closing database file after writing to it
updated assignment 1 with new database.py from assignment 0