PDO Integration (C/C++ conversion)