Fix to enable passing top searches parameters - top_n_searches and last_n_days - to DB select statement properly.  Adds on to #238