modify issue_select, issue_insert.
modify insert for error handling.