smarter sql session column and index types types