We can probably later merge the create-database code with that of our internal do-destroy-rebuild-database. (imported from commit 323932dbf2eb916545d6ebdda70eb1f5e1abb181)