Update tables.sql

Put all together