Intelligence agencies to link databases with new department