connect to web socket port from db, not hardcoded 5701

add some logging