I have a database scheme where I need to connect on table to two other tables. I have the table "documents". Documents can be uploaded. I have a table called task