Caching db & dbxref using HashRef, creating new ones if not present