That's a bit much to ask for in an online forum. You really need to read some books on the subjects. As far as databases go, many Unix distros have one or more databases that can be installed as packages. The two most popular are MySQL and PostgreSQL. Truthfully, I'm not seeing all that much call for CGI in C or C++ these days. People either use Java or VBScript except in high-performance apps where proprietary APIs are used. CGI's as often as not are written in Perl. Of all the popular languages, C and C++ probably have had the least amount of server-side infrastructure developed and standardized.
Being persecuted doesn't in any way prove your righteousness or your beliefs. Many people get persecuted because they are repugnant or annoying. Or just because they can be.
Come have lunch with me Arthur. Adventure will follow. This tiny ad: