converted Database type, made matrix mean function, calculated ProjectedImages_PCA