Changed functions to be under Class get_db() and fixed spectrum arrays so they are inserted and retreived from the database as Numpy arrays.