Create connection is not working