Tracked down tricky database restore bug
Added logout link