modified database.py to read in FITS files