New York State Police developing red flag database to track threats