open tab with sql buffer