remove duplicate db entries in update.php, update status when it already exists in db