Change order of fields in json spec to match output order
Encode the hash of the database file as hex to match how the JS code will behave
Clarify that the hash field is hex-encoded and order the fields alphabetically