make Database.download accept optional argument `client`