(Bug 60092) circumvent DatabaseMysqli as we can't test

Due to #93 but an inability to test #100, changes related to #93 and 'mysqli' are moved to its former state.