[ticket/13430] Add event core.prune_sql

https://tracker.phpbb.com/browse/PHPBB3-13430

PHPBB3-13430