Now returns the correct name of the file instead of the id.  Also sends the headers based off of the db not the object if the db stores it.