Applying Grant's IRCdiff.
Use DictCursor to make this a bit easier to read.
Switch to 9 decimals for file names.
Don't use status_line method.
Give description it's own element in metadata.
Shorten metadata's startLat/Lon to just lat/lon.
Wrap tags in their own <tags> element.
Add version number to metadata.xml root.
Remove Java stuff for now.
Fix some DictCursor spots I missed, add Z to UTC-ify timestamps.
Add psycopg2 extras import.
Put file extensions back.