db export --prefix

Could you add tests?