[ticket/10966] Introduce MSSQL base class

PHPBB3-10966