print database after break loop