trying fix problem with foreign keys