cart be in session and db