Universal database

Getting rid of database history fields.  Keeping empty reference and referenceType fields unwritten.