Backported the recent changes from Ensembl's DBConnection

- use placeholders in "do" commands