Issue #115: Generate sequences based on DB