Added better checks for the executeUpdate() calls.