Fixed server insertion query