When database directory is specified, now the database files are persistently downloaded into this directory, if needed.