fix for db creation and use importlib

sorry I messed up the git (2 commits for same issue) still figuring it out (used to svn)