Refactor requests to be parameterized by ID and Type

GET request fetches data from DB with optional parameters for character ID and relationship type. Returns data organized by chapter.