* finish script for download and save metadata in sqlite db