Cookie sessions now simply store the user id.
Made user and database use a little more realistic.
Some additional description.