Potentially inappropriate prescribing and adverse drug reactions in the elderly: a population-based study