added StockInfo case class
write stock info to db