created query for insert dox