Added db backend for users - also handling sockets better too