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