The script now generates all the tables for our purpose