updated db initializer