Fixing up whisper db cleanup script, adding better logging of errors for longprocs app