Add logout and custom database error page.