Changed FK relations to 1-1 where necessary

no idea whether they were used somewhere in project, so some code might
stop working