Adds support for postgres foreign keys