Best java sql parser. There is existing functionality to do this in MySQL.