Fixed Errors in create.sql --lost id reference