Made switch to appropriate tag names/attributes, ID and CLASS switched around for wrapper and inner frame
Small updates to operations upon logout, added porper headers on brands tables
Updated ordering on getting demos, str_date and str_invoice_date.. Not sure if this is stable