update socket urls and get db data at login