I want to run different WordPress websites under the same database

I believe a multisite solution + WooCommerce plugin (which is multisite compatible) would answer to the specifications you have listed.

About the multisite installation

I strongly recommend you to read:

As explained in the tutorial above, you can set different domain names for each of your sites, it just requires an additionnal plugin called WordPress MU Domain Mapping.

enter image description here