Add db adapter dependency when generating with --db, closes #492