Moved molecule specific actions to persistence layer

moved deleting of FixMessage and retrieval of last_transaction_time to persistence layer.
fixed tests associated with persistence.