add upgrade check to fabfile
simplifying task json parsing
change primary key in task table
completing migration to optimized task / metrics model