Fixed code to add ascii spectra to database.