Used wrong variable for protein_stable_id (thanks Valentí!)
Several columns from public.results.index were renamed. Adjusting code properly.
Synchronized with latest fixes for memory leaks in relational mapper