db fix

Fixed bugs in db. Everything works pretty well now including
referential integrity(i.e if you delete a user from the db all of their
info in other tables(except the quiz table) gets deleted. Also added a
piece of mail into the db for testing.