Fixes field visibility
Adds MapDB and on disk idMap implementation for #43