Use PDO for managing op types