How can i create a add to cart function . is there any way to created using data base?

how can i create a add to cart function . is there any way to created using data base ?
i am using the free version.

Here’s what we discussed recently.