FULL SCRIPT to create two popoulated tables