Hi there!
Program source code
The code of your site setup program (PHP, ASP, GO, JS) and so on. It needs to be deployed in the service area and is responsible for the program processing of your website.
The program source code needs a response running environment, such as the PHP discuz program. If you want to run it, you need to configure the php running environment on your server.
Database
Stores data (such as user information and posts) generated by your website. The database needs to be installed on the server, or you may directly purchase the Cloud database.
The program source code and data are separated. They can be deployed on the same server or separately.