Added libraries folder and fixed database code based on unit tests' results
Added more unit tests and fixed insert queries not working
Fixed update queries not working
Fixed delete query bug for the StockHistory data table