fix functional test

- The database script needs to be re-generated after schema change
- a few tests that go to registration page needs to sign out/clear cookies first
- move home page admin visible only elements from annotated fields to method