updated create query