Improved session task for creating table