endpoint for getting the list of all relationships
fixing bugs, changing the handling of dto and db models, preparing to add new functionality