On Tuesday, Gov. Andrew M. Cuomo and state lawmakers were putting the finishing touches on a deal to establish a so-called all-crimes DNA database, a move that is supported by all of the state’s 62 district attorneys and 58 sheriffs, as well as 400 police chiefs.