Stream database export directly

Instead of reading it into memory, which may cause a timeout
Merge branch 'master' of git://github.com/kuborgh/data-transfer-bundle