added database function and display test: get cart info