reads database and extracts the vectors, enter mean value and propagates