On the minimalist side of things, there is a dbm package in opam. “Binding to the NDBM/GDBM Unix databases”