added automatic sessions table creation in database script