Added authorization check to database pages.