Cleaned up each table sql file

also fine tuned the master tables and data sql files