Rename generic RELATES relationship to REFERENCES 

Although REFERENCES is still generic, in this context it is more
descriptive since these are pertaining to foreign key references.
Ensure the postgresql user and password are None if empty
Pass the `sniff` rather than the hard-coded value