added database function: add user session to cart