optimize code for PDO
Merge pull request #65 from vuthao/develop

optimize code for PDO