added db for relations
added db for relations