+ modified foreign keys processing

+ processing fetch by key queries