Added session class handler for storing session in database