added awake period model and fixed down migrations