Fixed invalid foreign key entries for database schema.