A data-driven approach to identify risk profiles and protective drugs in COVID-19