Database class edited