make tables and connect them