fixing database names
exception if no data is available for stock.