Ticket/13421 Introduce an interface for db\tools.php

https://tracker.phpbb.com/browse/PHPBB3-13421
for database tools