C++ updatedb almost complete