Update Db.php

This prevents the removeInserted function from re-attempting to remove ids which it has previously failed to remove.