Use enum for special database types.

Special database types (in-memory, on-disk) are stored in an enum.
I don't even care.