[feature/revisions] Properly select the form using the css name selector

PHPBB3-10755
[feature/revisions] Create a database object before trying to use it

PHPBB3-10755