getting cart from sql