First pass at cart db functions.