Low level API for database based sequenced number (with gaps) generation (table or sequence)