German court upholds terrorism database legality