Update scan.php

Changed the update array element order to properly update the database.