C++ crud example