Adding database and session class