Updates for inserting socket to db