add relations to db