insert queries fixed