DB fixes

Fixes issues with the DB module in which Java was mauling byte arrays.
Returns will now be handled internally as Unicode strings (which can
then use #unpack() to convert to the appropriate binary types).