add query for insert