support changing the cache size of the database
Database.query: support querying for download paths