Fixed the relations in master, #120

Some relationships overwritted others, so they had to be redefined.
#120, edited code style
Merge pull request #122 from DevYah/DB_#120_repair_master_relations

Fix conflicting relation names in Idea, User, and Comment.