Add id pk to stats table, migration to swap group_id and client_id in db

1. Adding a rake task to add standard primary key to the stats table and getting rid of the composite key. 
2. Adding a rake task for swapping the client_id and group_id fields in existing records in the database.