Core/Phases: Some minor changes, added SQL structure.

You can now bind terrainswaps to specific phase ids, these phaseids are applied by spells.
Still ToDo: Free terrainswaps.