Create pg on web socket connection

To avoid it connecting but never registering