Start up commit.

construct, insert and get latest id + permission check