Added process function. Filters the spectrum

Added a write to DB script. Working fine. Need to convert this into a
proper 'bins' mode using the defn in :
http://www.everredtronics.com/files/BIN_wavelength.pdf