Using a lib for tournament bracket

Working towards using a neat jQ bracket I found.
First I need to get the sql data into json, then go with it from there.