Update tables.sql

Fixed silly foreign key error