trying fix proble with foreign keys