Updated script to reflect new table names