Fix minor probs on rdb schema; add missing relationship