Finishing processQuery and starting edits on predictions.php