hw4.py revised

Turns out sqlite3 doesn't have a DATE type. Have to use str. Stupid stupid stupid.