fix finding commits broken by mongo -> postgrs migration