Fixing tuple creation and adding show column names query