remove socket from database