[ticket/10966] Introduce MySQL base class

PHPBB3-10966
Merge remote-tracking branch 'nickvergessen/ticket/10966' into develop

* nickvergessen/ticket/10966:
  [ticket/10966] Introduce MySQL base class