Made the Design API elements Serializable and added a "reattach" method
to provide a Database object post-deserialization (or presumably to copy
from one to another)