add insert by query support