switch to pdo helper from midgard-introspection where possible