Make first_contact use DB time instead of python
flake8 fixes
Use os.path.join instead of concatenation
Permit NOT NULL columns that have a default val
Fix tests for new DB timestamp

Fixes #343
Merge pull request #511 from adamrp/study_create_db_time_issue-343

Study create db time issue 343