Database construction and data mining