I ran into this on a fresh install when I added a server on the latest version last night.
I selected OLS and Maria db. Immediately it gave the same error regarding DB but kept installing the web server.
A few minutes later it finished installing but it installed Apache web server.
When APPCD version came up (couple minutes later, before that it was just a spinning circle) I was able to install the database without issue and the correct webserver.
Nickske00 You should try installing it again and it may work.
@Adam In my case there is no loopback issue at all and no ports are blocked between control panel and the new server