remove legacy function insert_update_delete_prepare