added factory.close()
added default constructor to StockHistory class.
changed database name