connect to data via localhost rather than hostname. fixes #8