changing connection to localhost