[ticket/11464] Add missing and remove unnecessary database entry

PHPBB3-11464