added method PMA_handleUpdatesForForeignKeys