Remove entries that are already in the database before updating the db.