1. split api. 2. fix multiple insert problem of DAO.