db done with relations