added js to get item price and time
fixing db issue