creating table relationship