rework database structure to support private and public sessions