Fixes to sql tables and statements.

Also added a more readable file for all of the dummy data.