Added migrations, decoupled model from app routing