garbage tmp stuff after commit db

@gerkey Please review.