Updated to be compatible with PHP PDO
Merge pull request #38 from mertenvg/feature/pdo-compat

Updated to be compatible with PHP PDO