Fix for problem. Need Unit Test.
Unit Test
SQL
Fixing table inserts.
Merge pull request #470 from spekary/bugfix-NullUniqueReverseReference

Bugfix null unique reverse reference