schema move to db/core