moved db recreate to general helpers