Updated db initializer