Ontology classification: Fix get_feature_paths PL/pgSQL method

This method had to be adapted to the recent database schema changes.