insert works, and returns false when the device exists - fixed syntax error