db init fixed