[ticket/12012] Begin and commit transactions in tests

PHPBB3-12012
[ticket/12012] Do not wrap integer defaults with ''

PHPBB3-12012