Changed the way foreign keys were named. Now the name is generated by
prefixing it with the name of the table.