Updated auto relationship setup. Added SQL files