add kmeans path to configuration and fix bug in path name in database access.