update xbrlDB to remember database type on last successful store

update rdfDB to use rdflib and not repeat already-loaded documents