code can save short/long query to DB

can save query to DB based on lists downloaded from NASDAQ and ADVFN.
Because ADVFN list is not up to date, need to manually edit it later.