I should change the query so that it uses species or something instead of pid