some minor work; changed imports to add prettytable and sqlite3; added a function def for specifying a file, added a date call