Edit func added relations to db images,reviews