Convert to C++; Use a prebuilt sqlite library