Updated Db\Relations mechanism
Fixed codestyle
Merge pull request #226 from AntonShevchuk/master

Updated Db\Relations mechanism