Use Mysql AUTO_INCREMENT to support id name cache