implemented kpi push to database