Enhancement on resolved #38 to check whether insert/update is successful.