Enabled excel output of database items

Edited the methods from previous version to work again with the new
database. Still needs a bit of work for it to look better.