add script to build tables