fixed saving of raw byte[] as a string to DB, now a hex string is used as in the filemapping table
pretty-printed to fix mixed tab/space indentation