connect to db in downloader