API Support PDO env for 3.2

I suggest not to merge this until we have finished stabilising the builds for master in cms / framework, including behat.