got socket to save to db