Improving the Performance and Scalability of Pattern Subgraph Queries