Moved some database content properly into the schema.sql file
Extracted some common code pertaining to db and dropbox access
A little more test cleanup and cogency of thought