Built upon RZ, the HEPDB package provides facilities and utilities which are sufficiently general as to be of use to all High Energy Physics experiments. It increases the functionality of RZ in a number of areas, such as data compression, for more economical storage on the random access devices and via partitioned directories, which helps optimize performance.