bugfix putting data files in database