Rertry when database is locked
Randomize sleep time before retry
Display progress to syslog