Initial optimisation of releases.php
Merge changes for releases.php
Fix for backwards compatibility with 1 table for all groups.