introduce the DB into core project.