Fixed the DeletePrediction logic and the remote Database