Added database socket support