[Ticket/11459] Deduplicate database schema definiton

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