small fix for downloading database;
functionality for uploading database