Load table-like objects dependencies from yaml
Generate the correct dependencies for the fkeys

The fkey depends internally on an index; however we don't fetch that
index because it was generated by a pkey/unique constraint, so the fkey
will depend on that constraint instead.
Fixed select ordering broken by the introduction of the oid
More robust index selection query

The constraint names are not reliable because they are not unique.