commit before generate session model