fixed BatchInsert and Update issue and add new api for Db