fixed a few more pdo bugs