commit 26

fixing the database problem with sessions