added sql relations