Work on sessions and database.
More work on sessions.