return error message when encounter a db error; modify length of tx_hash field to 64