Fixed the relationship arrow direction when actual FK constraints are parsed

The relationships generated when attempting to automatically detect
them, are already generated with the arrow pointing the correct way (ie.
from child to parent).

Also made this bit of code a bit more readable.