removing last-id so that database status is independent of repository
fixup! removing last-id so that database status is independent of repository