Update db table relationships