added code to load three tables - v6