added support for prepopulated db