Some search optimizations: plucking, and combined some db calls