Addressing the problems of care services for the elderly with a database of primary clinical data