created flask environment and models