Fix CreateTable test.
Add database metadata marshaling.
Add metadata persistence.