download_from_database function

Download source file from database