[ticket/12428] Use the database to store the original version number

PHPBB3-12428