Fix saveDB process