Added initial migrations
Added altertnative environment detections