[ticket/11350] Do not pass $db by reference; typehint phpbb_db_driver

http://tracker.phpbb.com/browse/PHPBB3-11350