Add basic refs to mem-db