Moved some database-related stuff out of the downloader script
Moved all this stuff into a ColdStorage module, to make coverage reporting easier
Restrict coverage reporting to just our package
Changes in response to test, improved test coverage
fixed SQL error, improved debug output
Added specification of unix socket for mysql connection
Removed unused imports
Made some date column names more consistent