Add script to publish files to db