Project environments saved to DB, ajax loader gif updated