add confirm popup to optimize db.