adding new file to get db
Changed code to use the SNCosmo function for setting self.source.set_peakmag, and calculate the distance modulus using CosmologyWrapper() in sims.photUtils to obtain the necessary peakmag