Only put the query parameters if there are any.
Add support for sparse entries in FileDB.