refactor so that the mixed curves are dependent on iml, imt and investigation time from metadata source rather than columns in the db