DB connection not initialized in read_sessions()