add some bugfix, make relation to itself also work in postgre
Merge pull request #3 from goFrendiAsgard/master

Bugfix. Relation to the same table also work in postgre