Added progress counter for revisions. Make parameters variables as final.
Parameterized revision to continue minering.
Fixing possible duplicated file + commit (using 'unique key' and 'insert ignore into')