added pdo
used pdo methods to exec queries