add db adapter aware initializer
Merge pull request #29 from nclundsten/feature/db-adapter-initializer

add db adapter aware initializer