Make supported DBs configurable within config.php

Backport of https://github.com/owncloud/core/pull/11786 to stable7. - Had a small merge conflict, therefore a second PR.

@PVince81 @DeepDiver1975