Revert "Changed creating db"

This reverts commit 17a2a4d08f98981d24b060b5d44cb9c65db387eb.