add dirty flag to make node to db reconnection faster
The table hive.irreversible_data was extended to column dirty (boolean). When dirty is TRUE it means that irreversible data are in inconsistent state. When the HAF will crash during sync (replay or p2p sync) then data are inconsistant: some dumping data thread finish their jobs and some do not. When node after crash will start, then it checks the dirty flag, if flag is set, then inconsistent data have to be removed but it may last very long time, because during replay there are no indexes to make inserting new rows faster. During restarting the HAF after the crash an error is returned with informations about datat inconistency. To succesfuly restart the node the switch `--psql-force-open-inconsistent` must be used.