Extra stuff for MapDB, which would not fit into main package for some reasons.