Split the example into two functions, the first one writes the catalog
to text ASCII files, reads the ASCII file and write to a DB. The second
function converts the DB into a pandas dataframe, groups observations to
groups involving the same SN by ID, and writes out light curves to ASCII
files.
- Added code to erase database if it exists
- Changed parameters to allow for 20 days worth of observations