Updated stockticker to write to mysql db