save updated shap to database