Added party list JSON/SQL queries

Party list JSON/SQL query classes added.
Added ordering field to candidate list JSON query.