fixed missing class in session, also added nice error message for missing db.ini