Berkeley DB has added a new utility db_convert
for converting
databases between big-endian (BE) and little-endian (LE) formats. The utility
allows you to specify the desired byte order without regard to
the endianness of the architecture of the host machine.