extracted method to save cert info to db & code updates in av_certs to new hash format