Smarter stores start behind the scenes