Update to database class and session class. Database stored sessions are
now working.