update how to create a connection