MDL-43761 make mysql table creation use only one query
MDL-43761 execute pg db change structure statement in one query with transaction

Thi makes these db changes atomic and maybe even faster, in any case it makes it more similar to mysql.