[tor-commits] [stem/master] Replace database function with query