Added getting relation types from DB
Merge remote-tracking branch 'origin/master'