Add the queries endpoint and files