refactor xbrlDB Postgres interface for use of indexing, no
repeat upload of existing document contents, etc.