create key while enabling the db
Merge pull request #1148 from dajohnso/tweak_enabledb

create key while enabling the db