Change K-means db generation to include pt with cabg