Anastasia April 9 commit

added cookies, and changed username in queries to Contact_Email, added
switch for Roles: 0,1,2