fixed database initializer