Make database dumps an abstract type.

The goal is to be able to use Git pack file directly.