register file downloads in the db