added table prefixes to relations