fix the foreign key toSQL()