format log file with timestamp
don't write csv file or do pg_copy if table returned by extractor has no
rows
set imported variable to false in csv file so it is loaded by pg_copy,
not updated afterwards
Merge pull request #6 from dimagi/melissa

data model refactor - application and formdef