Fixed analytics table creation