Fix some DatabaseMetaData stuff.
Try to make datetime persistence configurable.