I have decided to develop a C++ FastCGI back-end for the contacts program mostly as an excersize but also some curiosity to how easy it would be. I know CGI has fallen out of fashion and I think FastCGI to but they are still around and the experience will be useful.
The environment that I am running is one of my raspberry pi 1’s with Raspbian Jessie on top of which is installed NGINX, PHP, FastCGI and MySQL. Its slow but it serves it purpose and its cheap. I wont go into installing these programs as a quick search on Google should provide at least half a dozen guides on how to do so.