changed insert.php to update, NOT clear tables