pdo common functions
common functions