prevent Id overflow in find_or_insert
Merge pull request #403 from lucidd/overflow

prevent Id overflow in find_or_insert