Changed DB member/invited/operator... by flags

Here's how to update the databases:
ALTER TABLE contact_in_group ADD COLUMN flags integer DEFAULT 0 NOT NULL;
UPDATE contact_in_group SET flags = flags | 1 WHERE member;
UPDATE contact_in_group SET flags = flags | 2 WHERE invited;
UPDATE contact_in_group SET flags = flags | 4 WHERE declined_invitation;
UPDATE contact_in_group SET flags = flags | 8 WHERE operator;
UPDATE contact_in_group SET flags = flags | 16 WHERE viewer;
ALTER TABLE contact_in_group DROP column member;
ALTER TABLE contact_in_group DROP column invited;
ALTER TABLE contact_in_group DROP column declined_invitation;
ALTER TABLE contact_in_group DROP column operator;
ALTER TABLE contact_in_group DROP column viewer;