mainly SDO cleanup
renamed PDO functions