check db when using next-id instead of when generating it
check db when using next-id instead of when generating it

PrecursorApp/precursor,dwwoelfel/precursor,PrecursorApp/precursor,PrecursorApp/precursor,dwwoelfel/precursor,dwwoelfel/precursor