Database and models for solitaire game