CORE-5596 Added metadata db connection spec.
CORE-5596 Updated metadata db owner_id cols to varchar.

They will need to be converted to UUIDs in the rewrite branch.
CORE-5596 Added unique AVU cols constraint.

Added an index on the AVU cols.