Fix stock query to account for changes in database. The primary key of a stock should be the dataset example (WIKI/AAPL) because realistically it is possible for two different stocks to have the same ticker across different markets and therefore we cant just use the ticker alone.