Reverted HEAD reversion, implemented SqlAlchemy to History and Destination Settings