Class 7: connected to database