Serialize a database into a byte string.
name
Which database to serialize.
For an ordinary on-disk database file, the serialization is just
a copy of the disk file. For an in-memory database or a "temp"
database, the serialization is the same sequence of bytes which
would be written to disk if that database were backed up to disk.