Added SQL fields and dynamic Main Page

drop all sql tables like this:

drop table tablename;

then copy paste the sql.txt text into a mysql command prompt and rebuilt
the database;