We report on the XSTAR atomic database that contains a large quantity of atomic rates for use in spectral modeling of astrophysical plasmas. The database includes atomic energy levels, line wavelengths, radiative transition probabilities, electron impact excitation rates, photoionization cross section, recombination rate coefficients, electron impact ionization rates, and fluorescence and Auger yields. The species considered are all the ions of H, He, C, N, O, Ne, Mg, Si, S, Ar, Ca, Fe, and Ni. The database collects recent data from many sources including CHIANTI, TOPbase, ADAS, NIST, and the IRON Project. Two particular features of the database are the incorporation of photoionization cross sections from the Opacity Project for all levels of every ion, and state-specific recombination rates. State-specific collisional ionization and three-body recombination are also included. The collection of data is used to build excitation-ionization models of each ion for calculation of their spectra for electron densities of up to 1018 cm-3 and temperatures between 100 and 109 K. In addition, every ion model is designed to converge to LTE under appropriate conditions. These models and data are implemented in the photoionization modeling code XSTAR v.2.