Made new database.py file with functions that both partOne and partTwo use