Modified the job tracker to use the library, especially the new update_couchdb_document function which takes care of retries on conflits. Also made the status update only push updates to the databse if the status chagned (rather than always updating the document even if it was with the same status)