The database portion of the KMdata project