added database model for games