added code to load three tables - v5