Saving prediction to DB