refactored function for better reuse
renamed table header
added support for the deployment of data files
refactored handling of files - dont put them in the database anymore