add sql statement to confirm msg