load files from database OR templates