Added getting relation types from DB