fix rating

rating page working properly
starting to build group selection
sorting mysql-connection