Hybrid Algorithms for Subgraph Pattern Queries in Graph Databases