modified db init