core db init