Britain has announced plans for a database of extremists who would face automatic questioning and could be barred from entering the country .