SQL database as a canonical source of historical data in Ripple