Example code for storing ripple data in MySQL